/*
 * CProgressUtil.h
 *
 *  Created on: 2009-9-18
 *      Author: rockling
 */

#ifndef CPROGRESSUTIL_H_
#define CPROGRESSUTIL_H_

#include "QWString.h"

const QINT32 PRECISION = 1000;

class CQProgressUtil
	{
public:
	CQProgressUtil();
	virtual ~CQProgressUtil();
	
	static QINT32 GetPercentValue(QINT32 fullValue,QINT32 percent);
	static CQWString GetPercentStr(QINT32 percent);
	static CQWString GetPercentStrFull(QINT32 percent);
	static QINT32 GetPrecision(){return PRECISION;}
	
private:
	static QINT32 GetCount(QINT32 number);

	};

#endif /* CPROGRESSUTIL_H_ */
